//
//  LFOrderStateViewCell.m
//  LoveFruit
//
//  Created by 刘栋 on 16/9/25.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "LFOrderStateViewCell.h"

@interface LFOrderStateViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *stateLable;
@property (weak, nonatomic) IBOutlet UILabel *dateLable;

@property (weak, nonatomic) IBOutlet UILabel *orderDetailLable;
@property (weak, nonatomic) IBOutlet UILabel *orderTimeLable;
@property (weak, nonatomic) IBOutlet UIImageView *circleView;
@property (weak, nonatomic) IBOutlet UIImageView *belowView;
@property (weak, nonatomic) IBOutlet UIImageView *upView;

@end

@implementation LFOrderStateViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setOrderModel:(LFAccountOrderModel *)orderModel
{
    _orderModel = orderModel;
    
    self.dateLable.text = orderModel.time;
    
    self.stateLable.text = orderModel.title;
    
    self.orderDetailLable.text = orderModel.desc;
    
    self.orderTimeLable.text = orderModel.detail;
    
    if(orderModel.flag == 1)
    {
        self.stateLable.textColor = [UIColor blackColor];
        self.circleView.image = [UIImage imageNamed:@"order_yellowMark"];
        
        //这里不完善要改
        self.upView.hidden= YES;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
